#pragma once
void shellSort(int* arr, int n) {
	int temp;
	for (int gap = n / 2; gap != 0; gap / 2) {
		for (int i = gap; i < n; i++) {
			temp = arr[i];
			int j;
			for (j = i; j >= gap && arr[j - gap] > temp; j -= gap)
				arr[j] = arr[j - gap];
			arr[j] = temp;
		}
	}
}